<?php


return [

    // +----------------------------------------------------------------------
    // | 模板参数定义
    // +----------------------------------------------------------------------
    'view_replace_str' => array(
        '__CSS__' => '/static/admin/css',
        '__JS__'  => '/static/admin/js',
        '__IMG__' => '/static/admin/images',
    ),

    // +----------------------------------------------------------------------
    // | 跳转模板设置
    // +----------------------------------------------------------------------
    'dispatch_error_tmpl' => APP_PATH.'admin/view/public/error.tpl', //默认错误跳转对应的模板文件
    'dispatch_success_tmpl' => APP_PATH.'admin/view/public/success.tpl', //默认成功跳转对应的模板文件

    // +----------------------------------------------------------------------
    // | 后台授权配置
    // +----------------------------------------------------------------------
    'auth_config'  => [
        'auth_on'           => 1, // 权限开关
        'auth_type'         => 1, // 认证方式，1为实时认证；2为登录认证。
        'auth_group'        => '__AUTH_GROUP__', // 用户组数据不带前缀表名
        'auth_group_access' => '__AUTH_GROUP_ACCESS__', // 用户-用户组关系不带前缀表
        'auth_rule'         => '__AUTH_RULE__', // 权限规则不带前缀表
        'auth_user'         => '__ADMIN__', // 用户信息不带前缀表
    ],

    // +----------------------------------------------------------------------
    // | 后台缓存设置
    // +----------------------------------------------------------------------
    'auth_key' => 'JUD6FCtZsqrmVXc2apev4TRn3O8gAhxbSlH9wfPN', //默认数据加密KEY
    'salt'     => 'wZPb~yxvA!ir38&Z',//加密串

    // +----------------------------------------------------------------------
    // | 后台分页设置
    // +----------------------------------------------------------------------
    'paginate' => [
        'type'      => 'bootstrap',
        'var_page'  => 'page',
        'list_rows' => 15,
    ],

    // +----------------------------------------------------------------------
    // | 数据库备份导出设置
    // +----------------------------------------------------------------------
    'data_backup_path'     => '../data/',   //数据库备份路径必须以 / 结尾；
    'data_backup_part_size' => '20971520',  //该值用于限制压缩后的分卷最大长度。单位：B；建议设置20M
    'data_backup_compress' => '1',          //压缩备份文件需要PHP环境支持gzopen,gzwrite函数        0:不压缩 1:启用压缩
    'data_backup_compress_level' => '9',    //压缩级别   1:普通   4:一般   9:最高

    // +----------------------------------------------------------------------
    // | 极验验证,请到官网申请ID和KEY，http://www.geetest.com/
    // +----------------------------------------------------------------------
    'verify_type' => '0',   //验证码类型：0极验验证， 1数字验证码
    'gee_id'  => 'ca1219b1ba907a733eaadfc3f6595fad',
    'gee_key' => '9977de876b194d227b2209df142c92a0',
];
